package com.eight.feign;

import com.eight.util.WebFileUtil;
import com.eight.vo.ComResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("rentcar-upload")
public interface CarImgFgign {


    @RequestMapping(value = "/upload/ossfile/{dirPath}", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public ComResult upload(@RequestPart(value = "file") MultipartFile file, @PathVariable(value = "dirPath") String dirPath);

}
